package com.lablzh.gdxy.repository.admin;

import com.lablzh.gdxy.entity.admin.Classes;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface ClassesRepository extends JpaRepository<Classes,Integer> {
    List<Classes> findAllByMajor(String major);

    Classes findByName(String name);
}
